home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 448 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. From: David Byrden <100101.2547@compuserve.com>
  2. Message-ID: <4gief4$pv6@news.bridge.net>
  3. X-Original-Date: 22 Feb 1996 18:59:48 GMT
  4. Path: in2.uu.net!bounce-back
  5. Date: 22 Feb 96 20:22:36 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Return-Path: <daemon@meeker.UCAR.EDU>
  8. Newsgroups: comp.std.c++
  9. Subject: Templates; what does the standard mean here...
  10. Organization: self-employed
  11. X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
  12. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  13.     iQBFAgUBMSzQmOEDnX0m9pzZAQEuNAF/STZ8RvgT82q84uLj9ZMDteJlXuSsSEXa
  14.     B/71O1OBD9rcJtBTu3Y9HtbUNdsF9tkY
  15.     =IwB8
  16.  
  17. From the January draft standard:
  18.  
  19. 1 A template can be referred to by a template-id:
  20.           template-id:
  21.                   template-name < template-argument-list >
  22.           template-name:
  23.                   identifier
  24.           template-argument-list:
  25.                   template-argument
  26.                   template-argument-list , template-argument
  27.           template-argument:
  28.                   assignment-expression
  29.                   type-id
  30.                   template-name
  31.  
  32.  
  33.  Notice the third-last line, "assignment-expression". 
  34.  
  35.  Call me dumb, but I must ask what does this mean? What does the 
  36. expression specify, a type or a value? Will an assignment be made at run 
  37. time?
  38.  
  39.  Can you give me any examples of templates specialised with an 
  40. assignment-expression?
  41.  
  42.  
  43.                          Thankyou.
  44.  
  45.                                    David
  46. ---
  47. [ To submit articles: try just posting with your news-reader.
  48.                       If that fails, use mailto:std-c++@ncar.ucar.edu
  49.   FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
  50.   Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  51.   Comments? mailto:std-c++-request@ncar.ucar.edu.
  52. ]
  53.